﻿package com.web;


import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class MainServlet extends HttpServlet {

	private static final long serialVersionUID = 1L;

	
	@Override
	protected void service(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		// TODO Auto-generated method stub
		String method = request.getParameter("m");
		if(method==null||"".equals(method)){
			list(request,response);
			
		}else if("manager".equals(method)){
			manager(request,response);
		}else if("member".equals(method)){
			member(request,response);
		}else{
			response.sendError(404);
		}
	}

	private void member(HttpServletRequest request, HttpServletResponse response) {
		// TODO Auto-generated method stub
		
	}
	//你好啊

	private void manager(HttpServletRequest request,
			HttpServletResponse response) {
		// TODO Auto-generated method stub
		
	}


	private void list(HttpServletRequest request, HttpServletResponse response) {
		// TODO Auto-generated method stub
		
		
		
	}
}
